<?php
namespace app\common\util;

use think\Image;

class Picture
{
    public static function index()
    {
        $image = Image::open(file:'image.png');
        $image->thumb(500,500)->save('thumb1.png');
    }
}